package org.dromara.shopping.domain;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.shopping.domain.dto.AttrValueDto;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 商品属性对象 product_attr
 *
 * @author Mr.Zhou
 * @date 2024-10-21
 */
@Data
@TableName("product_attr")
public class ProductAttr implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 属性名
     */
    private String attrName;

    /**
     * 属性值
     */
    private String attrValues;


    @TableField(exist = false)
//    @ApiModelProperty(value = "属性值集合")
    private List<AttrValueDto> attrValue;

    @TableField(exist = false)
//    @ApiModelProperty(value = "属性")
    private List<String> attrValueArr;


}
